package com.itheima.service.impl;

import com.itheima.bean.User;
import com.itheima.mapper.UserDao;
import com.itheima.service.UserService;
import com.itheima.utils.MybatisUtils;
import org.apache.ibatis.session.SqlSession;

public class UserServiceImpl implements UserService {
    private SqlSession sqlSession = MybatisUtils.getSqlSession();
    private UserDao userDao = sqlSession.getMapper(UserDao.class);
    @Override
    public User login(User user) {
        return userDao.login(user);

    }
}
